using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.ProductionUnit
{
    public interface IWorkCenterAppService
    {
        Task<WorkCenterDto> GetAsync(Guid id);
        Task<WorkCenterDto> FindAsync(string filter);
        Task<WorkCenterDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<WorkCenterDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<WorkCenterDto>> QueryAsync(FilterGroupRequestDto input);
        Task<WorkCenterDto> CreateAsync(WorkCenterCreateDto input);
        Task<WorkCenterDto> UpdateAsync(Guid id, WorkCenterUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}